Buffering device with status communication method for memory controller

ABSTRACT

In an example, the present invention provides a memory interface device. The device has a command interface, address interface, and a control interface device coupled, respectively, to a command address bus, an address bus, and a control interface bus of a host memory controller. The device has a status signal interface configured to output a status signal coupled to the data interface bus of the host memory controller. In an example, the status signal is asserted in an absence of data asserted on the data interface bus.

RELATED APPLICATION

This application is a continuation of U.S. patent application Ser. No. 14/885,031, filed Oct. 16, 2015, now U.S. patent Ser. No. 10/198,187, issued Feb. 5, 2019, which is hereby incorporated in its entirety herein by reference.

BACKGROUND OF THE INVENTION

The present invention relates to memory storage systems and devices.

This invention relates generally to memory systems, and more particularly to memory systems which include a memory buffer that serves as an interface between a host controller and memory devices or other memory buffering devices residing on a DIMM, the memory buffer being optionally located on the DIMM itself or as part of the motherboard on which the DIMM connectors are also located.

Traditional computer systems, such as servers, workstations, desktops and laptops, all use pluggable memory which can be inserted into slots on the computer's motherboard as needed. The most common form of pluggable memory is the Dual In-line Memory Module (DIMM). Historically, DIMMs contain multiple RAM chips—typically DRAM—each of which has a data bus width of 4 or 8 bits. Typically, eight or nine 8-bit DRAM chips (or twice as many 4-bit DRAM chips) are arranged in parallel to provide each DIMM with a total data bus width of 64 or 72 bits; the data bus, typically referred to as the ‘DQ’ bus, is connected to a host controller. Each arrangement of 64 or 72 data bits using DRAM chips in parallel is termed a ‘rank’.

A command/address (CA) bus also runs between the host memory controller and each DIMM; the CA and DQ busses together form a ‘system’ bus. With a basic unbuffered DIMM, the CA bus is connected to every DRAM on the DIMM. As a result, there is a high electrical load on the CA bus, given by the product of the number of DRAMs times the number of ranks. For the DQ bus, the number of electrical loads is equal to the number of ranks.

A buffering device is employed to reduce loading in a ‘load reduction’ DIMM (LR-DIMM). An LR-DIMM containing multiple DRAM chips uses a logic device to buffer the DQ and CA signals between the DRAMs and a host controller. The logic device may be, for example, a single device such as the iMB (isolating Memory Buffer) from Inphi Corporation. Memory systems of this sort are described, for example, in co-pending U.S. patent application Ser. Nos. 12/267,355 and 12/563,308, which are incorporated herein by reference, for all purposes. Further details of conventional techniques can be found in U.S. Pat. No. 8,966,327, commonly assigned, in the name of Dr. David Wang, which issued Feb. 24, 2015, and hereby incorporated by reference for all purposes.

SUMMARY OF INVENTION

In an example, the present invention provides a method of operating a memory interface device. The method includes initializing a command interface, address interface, and a control interface device coupled, respectively, to a command address bus, an address bus, and a control interface bus of a host memory controller. The method includes initializing a data interface coupled to a data interface bus of host memory controller, at least one of the command interface, the address interface, or the control interface coupled to a memory device of a first type. In an example, the memory device of a first time is selected from a dynamic random access memory or another type of memory device. The method includes initializing a status signal interface configured to output a status signal coupled to the data interface bus of the host memory controller. The method includes transferring the status signal from the memory interface circuit to the host memory controller when data to be asserted on the data interface bus is absent such that a status word is transferred on the data interface bus. The method includes initializing a protocol checking and status generator block (“Block”), the protocol checking block comprising a protocol circuit and a status generating circuit configure with the protocol circuit. The method includes initializing a table configured the Block, the table being programmable with a plurality of timing parameters. In an example, the plurality of timing parameters with at least one or two of DRAM timing parameters includes tCL, tRCD, tRP, tWR, tAL, tRFC, tRRD, tCCD, tRAS, or tCWL, among others. In an example, the method includes transferring data from the memory through the data interface bus, the data interface bus being free from an assertion of the status signal and performing the transferring data within a time period of tCL, the t CL being 20 nanoseconds and less, and greater than 5 nanoseconds. Of course, there can be other variations, modifications, and alternatives.

In an example, the present invention provides a memory interface device. The device has a command interface, address interface, and a control interface device coupled, respectively, to a command address bus, an address bus, and an control interface bus of a host memory controller. The device has a data interface coupled to a data interface bus of host memory controller and at least one of the command interface, the address interface, or the control interface coupled to a memory device of a first type. In an example, the memory device of a first time is selected from a dynamic random access memory or another type of memory device. The device has a status signal interface configured to output a status signal coupled to the data interface bus of the host memory controller. In an example, the status signal is asserted in an absence of data asserted on the data interface bus. The device has a protocol checking and status generator block (“Block”), the protocol checking block comprising a protocol circuit and a status generating circuit configure with the protocol circuit. The device has a table configured the Block. In an example, the table is programmable with a plurality of timing parameters, the plurality of timing parameters with at least one or two of DRAM timing parameters including tCL, tRCD, tRP, tWR, tAL, tRFC, tRRD, tCCD, tRAS, or tCWL. In an example, programming can occur using software, firmware, or hardware for the registers or control registers during system initialization.

In an example, the method includes transferring information to and from the buffer device from the host computer or the plurality of memory devices and processing the information from either or both a command bus or/and an address bus to identify an erroneous command or erroneous address bus information. The method includes blocking the erroneous command or erroneous address bus information. The method also includes transferring instructions to preserve or return the plurality of memory devices to a known state. The method also processing protocol information for selected or all commands that pass through the Block.

These and other features, aspects, and advantages of the present invention will become better understood with reference to the following description and claims.

BRIEF SUMMARY OF THE DRAWINGS

FIG. 1 is a simplified illustration of a memory system.

FIG. 2 is a simplified illustration of a memory system according to an example of the present invention.

FIG. 3 is a simplified illustration of timing of normal read command through a memory system.

FIG. 4 is a simplified illustration of a timing of a read command using a status signal in a memory system according to an example of the present invention.

FIG. 5 is timing diagram of a LPDDR2 device for a data not valid signal.

DETAILED DESCRIPTION OF THE SPECIFIC EXAMPLES

As background, we briefly explain certain inadequacies of fixed latency, deterministically scheduled Memory Systems, as further described throughout the present specification and more particularly below.

FIG. 1 illustrates a baseline memory system that consists of a host memory controller, 100, a memory interface circuit 110, and multiple memory devices 120. One example of the memory interface circuit 110 illustrated in FIG. 1 is a DDR3 Memory Buffer. The description of the memory interface circuit 110 is generic in nature, and many other circuits may be broadly categorized as a memory interface circuit. In the baseline memory system illustrated in FIG. 1, the host controller 100 issues commands to the memory interface circuit 110, and the memory interface circuit buffers and re-drives the command to the memory devices. In the case that the command is a read command, the memory devices 120 are typically programmed to return data with a fixed, pre-determined latency. The Memory Interface Circuit 110 then buffers and re-drives the data to the host memory controller 100. In the case that the command is a write command, the host memory controller 100 drives the data also with a fixed, pre-determined latency relative to the write command, and the Memory Interface Circuit 110 re-drives the command and the data to the memory devices 120 with the fixed, pre-determined latency value that the memory devices had been programmed with.

One issue with the baseline memory system illustrated in FIG. 1 is that the memory system cannot easily deal with new, emerging memory devices that may need longer latencies on some commands some of the time. That is, for the majority of time, the memory device may operate with a fixed, pre-determined latency value, but once in a while, the memory device may find itself unable to meet the timing requirement imposed by the pre-programmed latency value for some sub set of the commands.

One possible solution to the issue of a memory device that may occasionally need more time to respond to a command is to simply select the absolute worst case latency value that the device may incur and operate the memory device with that absolute worst case latency. However, this solution may severely constrain performance and likely to be unacceptable as a general solution.

A second possible solution to the issue of a memory device that may occasionally need more time to respond to a command is to incorporate a feedback signal that stalls the host memory controller in the case that the memory device requires more time. However, the feedback signal in the context of modern high performance memory controllers is difficult to implement owing to the fact that the stall signal would stall all further commands, thus impacting performance even for commands that are unrelated to the command that caused the stall.

In this work, a third solution is proposed that utilizes a status signal that, when activated, informs the host memory controller that a given command may require more time to complete, and utilizes the shared data bus to return a status word that may optionally include: reason for the stall, and recommended re-try time for the host memory controller to re-issue the command to the memory interface device.

FIG. 2 illustrates a memory system that is structurally similar to the baseline memory system illustrated in FIG. 1. The difference between FIG. 1 and FIG. 2 is that the Memory interface circuit 240 in FIG. 2 includes a circuit, labelled as Status Generator 242, which can report the status of commands to the host memory controller. The proposed status reporting mechanism is enabled through the inclusion of an additional signal Status_n 243. The usage model of the Status_n 243 signal is as follows: under normal operating conditions, the Status_n 243 signal is de-asserted, and the memory interface circuit returns data with a fixed, pre-determined latency value through the data bus as is customary. However, in the case that the memory interface circuit is unable to return data with the fixed, pre-determined latency value, the Status Generator circuit 242 asserts the Status_n signal 243, and returns a status symbol to the host memory controller through the data bus, utilizing the timing of the fixed, pre-determined latency that the host memory controller expects for the read command.

Moreover, the Interface Circuit 240 is coupled with not only the fixed-latency memory devices 220, but also be coupled with new memory devices 230 that may require variable latency for some commands.

FIG. 3 illustrates the timing of an ordinary read command with fixed, pre-determined latency through a memory interface circuit.

FIG. 4 illustrates the timing of a read command where the memory interface device is unable to return data with fixed, pre-determined latency to the host memory controller, and instead asserts the Status_n signal and returns a status word to the host memory controller in lieu of data.

FIG. 5 illustrates usage of the Data Not Valid (DNV) Signal for LPDDR2-NV Memory Devices (JEDEC Standard JESD209-2F). FIG. 5 shows the timing and sequence of a read command of a LPDDR2-NV Memory device, where read data is expected with read latency (RL) of 3 cycles. FIG. 5 illustrates the case where the LPDDR2-NV memory device was unable to return data with the read latency of 3 cycles, and instead asserts the DNV signal, and returns a status via the data bus to the host memory controller that requests the memory controller to retry the read command with three different options: Immediate Retry with Read, Immediate Retry with Activate, and Retry Long with Read.

The proposed Status_n mechanism differs from the LPDDR2 DNV mechanism in that the LPDDR2 DNV mechanism applies to a memory device that has may require variable latency for some commands, whereas the proposed Status_n mechanism applies to the memory interface device which may be coupled to memory devices that may or may not require variable latency. For example, the proposed memory interface device may be coupled to commodity DRAM devices and MRAM devices that do not traditionally require variable latency commands, but the inclusion of the Status_n mechanism may be used to enable an intelligent, autonomous memory interface device where the memory interface device may dynamically utilize the coupled memory devices as needed, for autonomous data transfers or near-memory compute purposes, and in case the host memory controller attempts to access the memory devices through the memory interface device while the coupled memory devices are otherwise engaged, the memory interface device may utilize the Status_n signal to defer the request from the host memory controller, and request that the memory controller retry the command at a later time.

Example: Usage Model of the Status_n Mechanism

The Status_n mechanism can be used inform the host memory controller that data is unable to be delivered with the pre-specified latency, provide reasons for the inability to deliver that data, and provide the suggested timeframe when the command should be re-tried.

In a different scenario, the memory interface circuit 240 may perform autonomous data movements between local memory contained in the memory interface circuit and the memory devices 220, or between the local memory contained in the memory interface circuit and the memory devices 230, or between memory devices 220 and memory devices 230. In the case that the host memory controller attempts to access resources in memory devices 220 or memory devices 230 while the memory interface circuit is performing data movement operations to the same set of memory devices that the host memory controller intended to access, the memory interface circuit would be similarly prevented from returning data to the host memory controller, and through the status_n mechanism, it can also provide the reason for the delay, and provide a timeframe as to when the command should be retried.

In various embodiments, the memory buffer includes one or more additional hardware interfaces which are arranged to provide access to data stored in the DRAM chips, bypassing the host controller. In one example, the memory buffer might include a serial ATA (SATA) interface or the like such that in addition to serving as a buffer between a host controller and the DRAM, the memory buffer also serves as a buffer between the host controller and/or DRAM and external devices capable of interfacing with a SATA interface. Various example embodiments as described with reference to the accompanying drawings, in which embodiments have been shown. This inventive concept may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure is thorough and complete, and has fully conveyed the scope of the inventive concept to those skilled in the art Like reference numerals refer to like elements throughout this application.

It has been understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the inventive concept. As used herein, the term “and/or” includes any and all combinations of one or more of the associated listed items.

It has be understood that when an element is referred to as being “connected” or “coupled” to another element, it can be directly connected or coupled to the other element or intervening elements may be present. In contrast, when an element is referred to as being “directly connected” or “directly coupled” to another element, there may be no intervening elements present. Other words used to describe the relationship between elements should be interpreted in a like fashion (e.g., “between” versus “directly between,” “adjacent” versus “directly adjacent,” etc.).

The terminology used herein is for the purpose of describing particular embodiments and is not intended to be limiting of the inventive concept. As used herein, the singular forms “a,” “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises,” “comprising,” “includes” and/or “including,” when used herein, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other.

Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this inventive concept belongs. It has been be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.

The embodiments of the invention described herein are exemplary and numerous modifications, variations and rearrangements can be readily envisioned to achieve substantially equivalent results, all of which are intended to be embraced within the spirit and scope of the invention as defined in the appended claims. 

1. (canceled)
 2. A memory interface device comprising: an interface to couple to a host memory controller and to one or more memory devices, wherein the interface is configured to receive a read access command from the host memory controller, the read access command comprising an address of data to be read from the one or more memory devices, and to send address information corresponding to the address to the one or more memory devices; and a status generator circuit coupled to the interface and to couple to the host memory controller, wherein the status generator circuit is configured to: detect a status of the read access command; generate a status signal to reflect the status of the read access command, wherein the status signal comprises an indication of a reason why the read access command was not completed within a predetermined latency period; and send the status signal to the host memory controller.
 3. The memory interface device of claim 2, wherein interface is further configured to: receive the data from the one or more memory devices; and send the data to the host memory controller.
 4. The memory interface device of claim 2, wherein the interface to couple to the host memory controller via a first command bus, a first address bus and a first data bus, and to couple to the one or more memory devices via a second command bus, a second address bus and a second data bus.
 5. The memory interface device of claim 2, wherein the status generator circuit is configured to send the status signal to the host memory controller via the first data bus.
 6. The memory interface device of claim 2, wherein if the interface receives the data from the one or more memory devices within the predetermined latency period, the status generator circuit is configured to: determine a first status; and de-assert the status signal.
 7. The memory interface device of claim 6, wherein if the interface does not receive the data from the one or more memory devices within the predetermined latency period, the status generator circuit is configured to: determine a second status; and assert the status signal.
 8. The memory interface device of claim 7, wherein the status signal comprises an indication of a time when the read access command can be retried.
 9. A method of operating a memory interface device, the method comprising: receiving, by an interface of the memory interface device, a read access command from a host memory controller, the read access command comprising an address of data to be read from one or more memory devices; sending, by the interface, address information corresponding to the address to the one or more memory devices to the one or more memory devices bus; detecting, by a status generator circuit of the memory interface device, a status of the read access command; generating, by the status generator circuit, a status signal to reflect the status of the read access command, wherein the status signal comprises an indication of a reason why the read access command was not completed within a predetermined latency period; and sending, by the status generator circuit, the status signal to the host memory controller.
 10. The method of claim 9, further comprising: receiving, by the interface, the data from the one or more memory devices; and sending, by the interface, the data to the host memory controller.
 11. The method of claim 9, wherein the interface to couple to the host memory controller via a first command bus, a first address bus and a first data bus, and to couple to the one or more memory devices via a second command bus, a second address bus and a second data bus.
 12. The method of claim 11, wherein sending the status signal to the host memory controller comprises asserting the status signal on the first data bus.
 13. The method device of claim 9, wherein if the interface receives the data from the one or more memory devices within the predetermined latency period, the method further comprising: determining, by the status generator circuit, a first status; and de-asserting, by the status generator circuit, the status signal.
 14. The method device of claim 13, wherein if the interface does not receive the data from the one or more memory devices within the predetermined latency period, the method further comprising: determining, by the status generator circuit, a second status; and asserting, by the status generator circuit, the status signal on a status bus coupled between the memory interface device and the host memory controller.
 15. The method device of claim 14, wherein the status signal comprises an indication of a time when the read access command can be retried.
 16. A memory interface device comprising: an interface to couple to a host memory controller and to one or more memory devices, wherein the interface is configured to receive a read access command from the host memory controller, the read access command comprising an address of data to be read from the one or more memory devices, and to send address information corresponding to the address to the one or more memory devices; and a status generator circuit coupled to the interface and to couple to the host memory controller, wherein the status generator circuit is configured to: determine whether the read access command is completed within a predetermined latency period; and if the read access command is not completed within the predetermined latency period, send a status signal to the host memory controller indicating that the read access command is delayed, wherein the status signal comprises an indication of a reason why the read access command was delayed.
 17. The memory interface device of claim 16, wherein interface is further configured to: receive the data from the one or more memory devices; and send the data to the host memory controller.
 18. The memory interface device of claim 16, wherein the interface to couple to the host memory controller via a first command bus, a first address bus and a first data bus, and to couple to the one or more memory devices via a second command bus, a second address bus and a second data bus.
 19. The memory interface device of claim 18, wherein the status generator circuit is configured to send the status signal to the host memory controller via the first data bus.
 20. The memory interface device of claim 16, wherein the status generator circuit is further configured to: if the read access command is completed within the predetermined latency period, de-assert the status signal.
 21. The memory interface device of claim 16, wherein the status signal comprises an indication of a time when the read access command can be retried. 